<div style="min-height: 300px;" class="portlet x12">
	<div class="portlet-header"><h4>Gi&#7899;i thi&#7879;u</h4></div>			
		<div class="portlet-content" >		
			<form class="form label-inline" id="form_detail_edit" method="post" action="<?php echo base_url();?>admin/about/edit">
				<div class="field">
					<label for="company_name" >T&#234;n c&#244;ng ty</label> 
					<input type="text" class="medium" size="50" name="company_name" id="company_name" value="<?php echo (isset($about->company_name))?$about->company_name:"";?>">
				</div>	
				<div class="field">
					<label for="address" >&#272;&#7883;a ch&#7881;</label> 
					<input type="text" class="medium" size="50" name="address" id="address" value="<?php echo (isset($about->address))?$about->address:"";?>">
				</div>	
				<div class="field">
					<label for="phone" >&#272;i&#7879;n tho&#7841;i</label> 
					<input type="text" class="medium" size="50" name="phone" id="phone" value="<?php echo (isset($about->phone))?$about->phone:"";?>">
				</div>
				<div class="field">
					<label for="phone" >Email</label> 
					<input type="text" class="medium" size="50" name="email" id="email" value="<?php echo (isset($about->email))?$about->email:"";?>">
				</div>
				<div class="field">
					<label for="phone" >Slogan</label> 
					<input type="text" class="medium" size="50" name="slogan" id="slogan" value="<?php echo (isset($about->slogan))?$about->slogan:"";?>">
				</div>
				<div class="field">
					<label for="info_detail">Gi&#7899;i thi&#7879;u</label>
				</div>
				<div class="field">
					<?php 
					$config_mini = array(); 
 
			        $config_mini['toolbar'] = array(
			            array( 'Source', '-', 'Bold', 'Italic', 'Underline', 'Strike' ,'-', 'Link', 'Unlink', 'Anchor','Image')
			        );
			        $config_mini['filebrowserBrowseUrl'] = base_url()."ckeditor/kcfinder/browse.php";
			        $config_mini['filebrowserImageBrowseUrl'] = base_url()."ckeditor/kcfinder/browse.php?type=images";
			        $config_mini['filebrowserUploadUrl'] = base_url()."ckeditor/kcfinder/upload.php?type=files";
			        $config_mini['filebrowserImageUploadUrl'] = base_url()."ckeditor/kcfinder/upload.php?type=images";
			 
					echo $this->ckeditor->editor("info_detail", $about->info);?>					
				</div>		

				<input type="hidden" name="id" id="id" value="1">				
				<div class="buttonrow" align="center">					
					<button class="btn btn-orange" value="Save">Save</button>
					<input type="button" class="btn btn-grey" id="Cancel" value="Cancel">					
				</div>
		</form>
		<br><br>		
	</div>
</div>
<script>
$(document).ready(function(){
	$('.btn-grey').live('click',function(){				
		 parent.history.back();
	     return false;
	})
	$('.btn').click(function(){
		var button_type 	= $(this).attr('value');		
		var input_button_type = "<input type='hidden' name='button_edit' value='"+button_type+"' />";		
		$('#form_store_edit').append(input_button_type);	
				
		$('#form_store_edit').submit();		
	});	
});

</script>